{template header}

<div class="midder">
<div class="mc">


<form id="lesson-form" class="dform lesson-form" method="POST" action="{SITE_URL}index.php?app=study&ac=lesson&ts=editdo" onsubmit="return newTopicFrom(this)"  enctype="multipart/form-data">
<div class="cleft">

<div class="flat">
<h2>修改第{$strLesson['orderid']}课时</h2>


<div class="item">
<label class="item-label required" for="lesson_title">标题:</label>
<input type="text" id="lesson_title" name="title" value="{$strLesson['title']}" class="item-input" />
</div>

<div class="item">
<label class="item-label required">视频URL:</label>
<input type="text" name="videourl" value="{$strLesson['videourl']}" class="item-input" />
</div>

<div class="item">
<div id="editor-save-images" class="fr mrm"></div>
<label class="item-label required" for="lesson_content">正文:</label>
    <div id="tseditor"></div>
    <div style="display: none;">
       <textarea style="height:200px;" name="content"  class="item-input twentyrows mceEditor">{$strLesson['content']}</textarea>
    </div>
    <!--<textarea name="content" id="tseditor"></textarea>-->

</div>

<div class="item actions clearfix">


<input type="hidden" name="lessonid" value="{$strLesson['lessonid']}" />   

<button type="submit" class="btn btn-success fr mrm">保存</button>
<a href="{tsUrl('study','lesson',array('id'=>$strLesson['lessonid']))}" class="btn">取消</a>
</div>

</div>



</div>



<div class="cright">

<div class="flat">
<h3>上传附件</h3>

{if $strLesson['attach']}
{$strLesson['attachname']} <a href="{SITE_URL}index.php?app=study&ac=lesson&ts=delattach&lessonid={$strLesson['lessonid']}" onclick="return confirm('确定删除吗？')">[删除]</a>
<br />
{/if}

<input type="file" name="attach" /> 
<div class="hint"> (格式：jpg,png,gif,zip,rar,dic,txt,pdf,ppt,docx,xls,xlsx)</div>
</div>

<div class="flat">
<h3>上传视频</h3>

{if $strLesson['video']}
{$strLesson['videoname']} <a href="{SITE_URL}index.php?app=study&ac=lesson&ts=delvideo&lessonid={$strLesson['lessonid']}" onclick="return confirm('确定删除吗？')">[删除]</a>
<br />
{/if}

<input type="file" name="video" />
<div class="hint"> (格式：flv,mp4)</div>
</div>

</div>
</form>



</div>
</div>
{php doAction('tseditor')}
{template footer}